﻿using Business.Base;
using Business.Base.DB.Query;
using Business.Base.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Business.Base.Service
{
    public interface IExperimentDBService
    {
        /// <summary>
        /// 查询试验记录
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="query"></param>
        /// <returns></returns>
        List<Object> QueryExperiment(BaseQuery query);


        List<Object> QueryExperimentReocrd(BaseQuery query);





        int GetExperimentCount(BaseQuery query);


        int GetExperimentRecordCount(BaseQuery query);


        void DeleteExperiment(Experiment experiment);



        void SaveExperiment(Experiment experiment);

        void UpdateExperiment(Experiment experiment);

        void RemoveExperimentRecordByIds(int[] id);


        int SaveExperimentRecord(ExperimentRecord record);
        void UpdateExperimentRecord(ExperimentRecord record);
    }
}
